package top.zywork.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.zywork.dao.GoodsHotDAO;
import top.zywork.dos.GoodsHotDO;
import top.zywork.dto.GoodsHotDTO;
import top.zywork.service.AbstractBaseService;
import top.zywork.service.GoodsHotService;

import javax.annotation.PostConstruct;

/**
 * GoodsHotServiceImpl服务接口实现类<br/>
 *
 * 创建于2019-07-24<br/>
 *
 * @author http://zywork.top 王振宇
 * @version 1.0
 */
@Service(value = "goodsHotService")
public class GoodsHotServiceImpl extends AbstractBaseService implements GoodsHotService {

    private GoodsHotDAO goodsHotDAO;

    @Autowired
    public void setGoodsHotDAO(GoodsHotDAO goodsHotDAO) {
        super.setBaseDAO(goodsHotDAO);
        this.goodsHotDAO = goodsHotDAO;
    }

    @PostConstruct
    public void init() {
        super.init(GoodsHotDO.class, GoodsHotDTO.class);
    }
}
